package com.kxf.checkapksoplugin.util

import org.codehaus.groovy.runtime.ProcessGroovyMethods
import java.io.File

class Test {
}

fun main(args: Array<String>) {

    println("System.getProperty(\"user.dir\")==>>${System.getProperty("user.dir")}")

    Runtime.getRuntime().exec("git status")
    var re =
        ProcessGroovyMethods.getText(ProcessGroovyMethods.execute("../gradlew :app:dependencyInsight --configuration debugCompileClasspath --dependency solibtest"))
    println("re==>>$re")

    var cmdRe = CommandUtils.runCommand(
        arrayListOf(
            "gradlew :app:dependencyInsight --configuration releaseCompileClasspath --dependency solibtest"
        ),
        File(System.getProperty("user.dir"))
    )
    println("cmdRe==>>$cmdRe")

}